﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="admin__root_TopMenuBar" Codefile="TopMenuBar.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript" src="../_common/scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="../_common/scripts/Util.js"></script> 
    <style type="text/css">
        body
        {
            margin: 0px;
            background: #337ABB url("../_common/skin/default/images/frame_bgx.png");
            font-size: 12px;
        }
        div
        {
            margin: 0px;
            padding: 0px;
        }
        .system_logo
        {
            width: 190px;
            height: 29px;
            float: left;
            text-align: left;
            margin-top: 4px;
            margin-left: 6px;
            background: url("../_common/skin/default/images/logo_up.png") 2px 0px no-repeat; 
        }
        *html .system_logo
        { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image, src="../_common/skin/default/images/logo_up.png"); background: none; } 
        .profile { width: auto; float: right; color: #B6DCF5; margin: 5px 10px 0px 0px; line-height: 25px; font-size: 14px; font-family: Tahoma, Geneva, "微软雅黑e\8f6f\96c5\9ed1", "宋体B8B\4F53"; }
        .profile TABLE { width: auto; border: 0px; float: right; }
        .profile SPAN { float: left; margin-right: 5px;}
        .profile a { float: left; color: #B6DCF5; text-decoration: none; }
        .profile a:hover { color: #ffffff; text-decoration: underline; }
        /*- Menu Tabs 6--------------------------- */
        #tabs
        {
            float: left;
            width: auto;
            line-height: normal;
        }
        #tabs ul
        {
            margin: 0;
            padding: 0px 10px 0px 0px;
        }
        #tabs li
        {
            display: inline;
            margin: 0;
            padding: 0;
        }
        #tabs a
        {
            float: left; 
            margin: 0;
            padding: 0 0 0 5px;
            text-decoration: none;
            height: 38px;
            font-size: 14px;
        }
        #tabs a span
        {
            float: left;
            display: block; 
            padding: 10px 14px 8px 12px;
            color: #B6DCF5;
            font-family: Tahoma, Geneva, "微软雅黑e\8f6f\96c5\9ed1", "宋体B8B\4F53";
        }
        /* Commented Backslash Hack hides rule from IE5-Mac \*/
        #tabs a span
        {
            float: none;
        }
        /* End IE5-Mac hack */
        #tabs a:hover span
        {
            color: #fff;
        }
        #tabs a:hover
        {
            background-position: 0% -42px;
        }
        #tabs a:hover span
        {
            background-position: 100% -42px;
            color: #fff;
        }
        #tabs a.selected
        {
            background-color: #3B6DAF;
            background-position: 0 -40px;
        }
        
        #tabs a.selected span
        {
        	background-position: 100% -42px;
            color: white;
        }
    </style>
    <script type="text/javascript">
    var CurrentMenuId="<%=CurrentMenuId %>"; 
    function InitializeMenu()
    {
        var i=1;
        $("div[id='tabs'] li a").each(function() {
            if(CurrentMenuId == "-1"){
                if(i==1)
                    $(this).addClass("selected");
            }
            else
            {
                if($(this).attr("id")==CurrentMenuId)
                {
                    $(this).addClass("selected"); 
                }
                else
                    $(this).removeClass();
            }
            i++;
        }); 
    }
    </script>
</head>
<body onload="InitializeMenu();">
    <form id="form2" runat="server">
    <div class="menu">
        <div class="system_logo"></div>
        <div id="tabs">
            <ul>
                <asp:Repeater ID="rptTopMenuBar" runat="server">
                <ItemTemplate>
                    <li><a href="###" url="<%# Eval("PageUrl") %>" id="<%# Eval("CatalogId") %>" onclick="parent.GoTo(this);">
                        <span><%# Eval("CatalogName")%></span></a></li></ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="profile">
            <table cellpadding="0" cellspacing="0" style="">
                <tr>
                    <td>
                        <span>当前用户:</span><span id="spanUserName" runat="server"></span> <a href="###" onclick="openStdDlg('../../admin/system/changepassword.aspx', window, 375, 245);">修改密码</a><span class="spacer" style="margin: 0px 15px;">|</span><a href="###" onclick="top.location.href='../../admin/logout.aspx';">退出</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
